package com.serviceImpl;

import java.util.List;

import com.bean.ProcureInquiry;
import com.bean.SupplierProduct;
import com.dao.SupplierProductDao;

public class SupplierProductServiceImpl {
	private SupplierProductDao supplierProductDao;

	public SupplierProductDao getSupplierProductDao() {
		return supplierProductDao;
	}

	public void setSupplierProductDao(SupplierProductDao supplierProductDao) {
		this.supplierProductDao = supplierProductDao;
	}
	
	/**
	 * 获取供应商询价报价列表
	 * @param suid
	 * @return
	 */
	public List<SupplierProduct> getAllSupplierProductList(String table,String pk,String sort,int PageNumber,int PageSize ,String querys){
		
		return supplierProductDao.getAllSupProdList(table, pk, sort, PageNumber, PageSize, querys);
	}
	
	/**
	 * 保存报价
	 * @param supplierProduct
	 */
	public void saveSupproduct(SupplierProduct supplierProduct){
		supplierProductDao.save(supplierProduct);
	}
	
	/**
	 * 中标
	 * @param supdt
	 */
	public boolean getSelectedSuna(Integer id){
		supplierProductDao.updateSupplierProduct(id);
		return true;
	}
	
	
}
